<template>
  <div>
    <el-container :style="{ height: screenHeight }"
      ><!--设置容器占全屏-->
      <!-- 测试一下-->
      <el-header>用户管理系统</el-header>
      <el-container>
        <el-aside width="200px">
          <router-link to="/User">用户管理</router-link><br>
          <router-link to="/Dept">部门管理</router-link>
        </el-aside>
        <el-container>
          <el-main>
            <router-view></router-view>
          </el-main>
          <el-footer>--_(:з」∠)_--</el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {
    return {
      screenHeight: document.documentElement.clientHeight + "px",
    };
  },
  methods: {},
};
</script>
<style>
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;

}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
body {
  margin: 0px;
}
</style>